<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: lenovo
  Date: 2020/7/15
  Time: 15:48
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Optimation</title>
    <link href="css/bootstrap.min.css" rel="stylesheet">
    <script src="js/jquery-1.11.3.min.js"></script>
    <script src="js/bootstrap.min.js"></script>
</head>
<body>

<div class="container-fluid">
<br/>

    <div class="row">
        <div class="col-md-1 col-md-offset-1">
            <p >&nbsp;</p>
            <p >NO.</p>
        </div>

        <div class="col-md-1">
            <p >&nbsp;优化前</p>
            <p >&nbsp;推理值</p>
        </div>

        <div class="col-md-1">
            <p >&nbsp;优化后</p>
            <p >&nbsp;推理值</p>
        </div>

        <div class="col-md-1">
            <p >&nbsp;</p>
            <p > 优化效果</p>
        </div>

        <div class="col-md-6 cen">
            <p >&nbsp;</p>
            <p > &nbsp;优化后数据</p>
        </div>

    </div>

    <div class="row">

        <div class="col-md-1 col-md-offset-1">
            <table>
                <% for(int i=1;i<=Integer.valueOf(request.getSession().getAttribute("dataList_Size").toString());i++) { %>
                <tr>
                    <td>
                        <br/>
                        <%= i %>
                        <br/>
                        <br/>
                    </td>
                </tr>
                <% } %>
            </table>
        </div>

        <div class="col-md-1">
            <table>
                <c:forEach items="${sessionScope.Inference_Result}" var="item">
                    <tr>
                        <td>
                            <br/>
                                ${item}
                            <br/>
                            <br/>
                        </td>
                    </tr>
                </c:forEach>
            </table>
        </div>

        <div class="col-md-1">
            <table>
                <c:forEach items="${sessionScope.pso_result}" var="item">
                    <tr>
                        <td>
                            <br/>
                                ${item}
                            <br/>
                            <br/>
                        </td>
                    </tr>
                </c:forEach>
            </table>
        </div>

        <div class="col-md-1">
            <table>
                <c:forEach items="${sessionScope.optimal_result}" var="item">
                    <tr>
                        <td>
                            <br/>
                                ${item}
                            <br/>
                            <br/>
                        </td>
                    </tr>
                </c:forEach>
            </table>
        </div>

        <div class="col-md-6">
            <table>
                <c:forEach items="${sessionScope.pso_data}" var="item">
                    <tr>
                        <td>
                            <br/>
                            <c:forEach items="${item}" var="value">
                                ${value}&nbsp;&nbsp;
                            </c:forEach>
                            <br/>
                        </td>
                    </tr>
                </c:forEach>
            </table>
        </div>

    </div>

    <br/>
    <br/>
    <div class="btn-group" role="group" aria-label="..." style="margin-left: 47%">
        <a type="button" class="btn btn-primary" href="Step2.jsp"> 返回步骤2 </a>
    </div>
    <br/>
    <br/>

    <%
        //session.removeAttribute("DataUpload_flag");
        session.setAttribute("Optimation_flag","finished");
    %>

</div>

</body>

<style>

    p{
        font-weight: bold;
        font-size: 17px;
    }
    .cen{
        text-align: center;
    }
    tr{
        text-align: center;
    }
    td{

        text-align: center;
    }

    th{
        text-align: center;
    }

</style>

</html>
